const useMessage = {
  success: (message: string) => {
    ElMessage({
      message,
      type: 'success',
    });
  },
  error: (message: string) => {
    ElMessage({
      message,
      type: 'error',
    });
  },
  warning: (message: string) => {
    ElMessage({
      message,
      type: 'warning',
    });
  },
  info: (message: string) => {
    ElMessage({
      message,
      type: 'info',
    });
  },
};
const useConfirm = ElMessageBox.confirm;
const useAlert = ElMessageBox.alert;

export { useMessage, useConfirm, useAlert };
